
//final关键字

public class FinalClass(){
    //属性
    private String name;
    //final修饰变量，必须要赋值，且不能被更改
    public final int age  = 29;
    public final void setName(String name){
        this.name = name;
    }

}